package com.zs.members;

import com.zs.members.comfig.RsaKeyProperties;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @program: clms-nine
 * @description: 会员的启动类
 * @author: 张硕
 * @create: 2021-07-23 16:11
 **/
@SpringBootApplication
@MapperScan(basePackages = {"com.zs.members.dao"})
@ComponentScan(basePackages = {"com.gsj.common","com.zs.members"})
@EnableConfigurationProperties(value = {RsaKeyProperties.class})
//@EnableTransactionManagement//事务
@EnableFeignClients //开启feign
public class MembersApp {
    public static void main(String[] args) {
        SpringApplication.run(MembersApp.class,args);
    }
}
